<%--
  Created by IntelliJ IDEA.
  User: admin
  Date: 2023/3/24
  Time: 15:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>联系我们</title>
    <link rel="stylesheet" href="../css/callus.css">
    <link rel="stylesheet" href="../css/common.css">
    <script src="../js/jquery-3.6.3.min.js"></script>
    <script src="../js/common.js"></script>
    <script src="//api.map.baidu.com/api?type=webgl&v=1.0&ak=dA3UjEDKVZC4G6B9Rjm1rfHDTLIKTAFs"></script>
</head>
<body class="justify-content-center">
<div class="width-1000">
    <!--    头部-->
    <div id="top"></div>
    <!--    中间-->
    <div class="justify-content-center middle">
        <div class="border-gray width-900 ">
            <div class="title-bar">联系我们</div>
            <div class="border-top flex-direction-column-reverse">
                <div>
                    <div class="justify-content-center align-items-center">
                        <div class="chinese">我们会做的更好!</div>
                        <div class="english">WE WILL DO BETTER</div>
                    </div>
                    <div class="text-align-center">如果您对我们有什么建议、投诉、需求，可以通过留言告诉我们，我们会在第一时间了解并及时与您联系。</div>
                </div>
                <div class="justify-content-center">
                    <div class="map">
                        <div id="container"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!--    底部-->
    <div id="foot"></div>

</div>
</body>
</html>
<script>
    var map = new BMapGL.Map('container'); // 创建Map实例
    // 初始化地图,设置中心点坐标和地图级别
    var point=new BMapGL.Point(104.066329,30.579163);
    map.centerAndZoom(point, 18);
    map.enableScrollWheelZoom(true); // 开启鼠标滚轮缩放


    // 创建小车图标
    var myIcon = new BMapGL.Icon("../img/baihualiaosheng.jpg", new BMapGL.Size(52, 26));
    // 创建Marker标注，使用小车图标

    var marker = new BMapGL.Marker(point, {
        icon: myIcon
    });
    // 将标注添加到地图
    map.addOverlay(marker);

    // // 创建点标记
    // var marker = new BMapGL.Marker(point);
    // map.addOverlay(marker);
    // // 创建信息窗口
    var opts = {
        width: 200,
        height: 100,
        title: '万息集团'
    };
    var infoWindow = new BMapGL.InfoWindow('地址：成都市武侯区孵化园9号楼E座', opts);
    // 点标记添加点击事件
    marker.addEventListener('click', function () {
        map.openInfoWindow(infoWindow, point); // 开启信息窗口
    });
</script>
